import request from "@/router/axios";

export const getListByDate = (date) => {
  return request({
    url: '/api/blade-produce/blade-basic/calendar/getListByDate',
    method: 'get',
    params: {
      date,
    }
  })
}


export const getList = (current, size,params) => {
  return request({
    url: '/api/hg-logistics/inventory/warning/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}


export const getMaterialList = (current,size,data) => {
  return request({
    url: '/api/hg-public/material/info/page',
    method: 'get',
    params: {
      ...data,
      current,
      size,
    }
  })
}


export const getMaterialTypeList = () => {
  return request({
    url: '/api/hg-public/material/type/get-all-second-type',
    method: 'get',
  })
}


export const getBoxList = (current,size,params) => {
  return request({
    url: '/api/hg-logistics/inventory/warning/box',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}


export const getOutInList = (current,size,params) => {
  return request({
    url: '/api/hg-logistics/inventory/warning/out-in',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

